body, ul, ol, li {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

html, body {
    height: 100%;
    width: 100%;
}

html {
    font-size: 12px;
    font-family: '宋体', serif;
}

html * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
}

.root {
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
}

.header {
    position: relative;
    height: 36px;
    width: 100%;
    margin-bottom: 1px;
}

.header-left {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    margin-right: 1px;
}

.header-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 61px;
    right: 0;
}

.tab {
    position: relative;
    height: 37px;
    width: 50%;
    float: left;
    text-align: center;
    font-size: 16px;
    line-height: 36px;
    border-left: 1px solid #eeefee;
    margin-left: -1px;
    user-select: none;
}

.tab.tab-active {
    color: #d2142e;
}

.tab.tab-active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    height: 1px;
    width: 60%;
    background-color: red;
}

.content {
    width: 100%;
    position: relative;
    overflow: hidden;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.main {
    width: 100%;
    top: 0;
    bottom: 125px;
    position: absolute;
}

.main section {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.chart-box {
    position: absolute;
    top: 28px;
    right: 0;
    bottom: 50px;
    left: 0;
    margin-top: 1px;
    border-bottom: 1px solid #e6e6e6;
    overflow: hidden;
}

.title-box {
    position: absolute;
    height: 28px;
    width: 100%;
    overflow: hidden;
}

.title-left {
    position: absolute;
    left: 0;
    width: 60px;
    height: 100%;
    margin-right: 1px;
    background-color: #eeefee;
    text-align: center;
}

.title-left div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 10px;
    margin: auto;
}

.title-content-box {
    position: absolute;
    left: 61px;
    right: 0;
    height: 100%;
    overflow: hidden;
    background-color: #eeefee;
}

.title-content {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #eeefee;
}

.title-content .ball-box {
    background-color: #eeefee;
}

.issue-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    margin-right: 1px;
    overflow: hidden;
    color: #434343;
}

.issue {
    height: 28px;
    text-align: center;
    line-height: 28px;
    background-color: #eeefee;
    font-size: 14px;
}

.issue:nth-child(n+2) {
    margin-top: 1px;
}

.chart-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 61px;
    right: 0;
}

.chart-row {
    height: 29px;
}

.chart-row .ball-box {
    background-color: #F6F6F6;
    color: #dfcdce;
}

.ball-box {
    float: left;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    color: #666;
    position: relative;
}

.ball-win {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    line-height: 24px;
    color: #fff;
}

.red-box .ball-win {
    background-color: #d2142e;
}

.blue-box .ball-win {
    background-color: #1094d8;
}

.ball-box:nth-child(n+2) {
    border-left: 1px solid #fff;
}

.choose-box {
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
}

.choose-title {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60px;
    margin-right: 1px;
    text-align: center;
    line-height: 50px;
}

.choose-content {
    position: absolute;
    top: 50%;
    right: 0;
    left: 61px;
    height: 28px;
    margin-top: -14px;
    overflow: hidden;
}

.choose-row {
    position: absolute;
}

.choose-row .ball-box {
    border-radius: 50%;
    -webkit-touch-callout: none;
    touch-action: none;
}

.choose-row .ball-box:nth-child(n+2) {
    border-left: 1px solid transparent;
}

.footer {
    position: absolute;
    bottom: 0;
    height: 125px;
    width: 100%;
    padding-top: 3px;
}

.wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.chart-hide {
    display: none;
}

.chart-show {
    display: block;
}

.chosen-box {
    height: 45px;
    text-align: center;
}

.bet-box {
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.bet-btn {
    height: 34px;
    width: 100px;
    font-size: 14px;
    background-color: #d2142e;
    border-radius: 3px;
    line-height: 34px;
    text-align: center;
    color: #fff;
    margin: 0 auto;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.chosen-list {
    overflow: hidden;
}

#checked_red {
    line-height: 12px;
}

#checked_red li {
    width: 2.3rem;
    height: 1.5rem;
    box-sizing: border-box;
    margin-right: 1px;
    color: #d2142e;
    text-align: center;
    float: left;
}

.chosen-title {
    width: 60px;
    float: left;
}

.red-box .choose-row {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.red-box .choose-row .ball-win {
    color: #d2142e;
    line-height: 22px;
    border: 1px solid #d2142e;
    box-sizing: border-box;
    background: none;
}

.blue-box .choose-row .ball-win {
    color: #1094d8;
    line-height: 22px;
    border: 1px solid #1094d8;
    box-sizing: border-box;
    background: none;
}

.blue-box .choose-row .ball-win.active {
    background: #1094d8;
    color: #fff;
    border: none;
    line-height: 25px;
}

.red-box .choose-row .ball-win.active {
    background: #d2142e;
    color: #fff;
    border: none;
    line-height: 25px;
}

.num_money {
    text-align: center;
    height: 20px;
    line-height: 20px;
    font-size: 12px;
}

.bet-btn:active {
    opacity: .5;
}

.bet-btn.bet-btn-disable {
    background-color: #ccc;
}

.bet-btn.bet-btn-disable:active {
    opacity: 1;
}

/* settings start*/

.settings {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);

}

.modal {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    height: 149px;
    margin: auto;
    background: #fff;
    border-radius: 5px;
}

.settings .sort-box {
    height: 40px;
    margin-top: 10px;
    line-height: 40px;
}

.settings .sort-box div {
    float: left;
    margin-left: 20px;
    color: #434343;
}

.settings .sort-btn {
    width: 70px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    border: none;
    border-radius: 3px;
    background: #cccccc;
}

.settings .sort-btn.active {
    background: #d2142e;
    color: #fff;
}

.settings .btn-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 44px;
    border-top: 1px solid #f0f0f0;
}

.settings .btn {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #fff;
    font-size: 16px;
    font-family: '黑体';
}

.settings .cancel {
    left: 0;
    color: #434343;
    border-right: 1px solid #f0f0f0;
    border-bottom-left-radius: 5px;
}

.settings .confirm {
    right: 0;
    color: #d2142e;
    border-bottom-right-radius: 5px;
}

.modal-title {
    height: 47px;
    line-height: 47px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    color: #333;
    font-family: '黑体';
}

/* settings end*/